package org.br.erp.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("materialmauf")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="material对象", description="产品表")
@Entity
public class Materialmauf implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @Column(length = 30)
    private String batchrule;

    @Column(precision = 28,scale = 8)
    private BigDecimal maufbatch;

    @Column(length = 32)
    private String parentid;

    @Column(precision = 28,scale = 8)
    @ColumnDefault("false")
    private BigDecimal maufdays;

    /**
     * 固定提前期
     */
    @Column(precision = 28,scale = 8)
    @ColumnDefault("false")
    private BigDecimal mauffixdays;


    @Column(precision = 28,scale = 8)
    @ColumnDefault("false")
    private BigDecimal maufbddays;

    //是否劳务
    @Column(length = 10)
    @ColumnDefault("false")
    private String ispersionservice;
    //上料管控
    @Column(length = 10)
    @ColumnDefault("false")
    private String isloadingcontrol;
    //工艺管控
    @Column(length = 10)
    @ColumnDefault("false")
    private String processcontrol;

    /**
     * 生产部门
     */
    @Column(length = 32)
    private String productdeptid;

    @Column(length = 32)
    private String warehouseid;

    @Column(length = 10)
    @ColumnDefault("false")
    private String issale;

    @Column(length = 10)
    @ColumnDefault("false")
    private String ispo;

    @Column(length = 10)
    @ColumnDefault("false")
    private String isww;

    @Column(length = 10)
    @ColumnDefault("false")
    private String isgd;


    @Column(length = 10)
    @ColumnDefault("false")
    private String ispd;


    @Column(length = 10)
    @ColumnDefault("false")
    private String iskitflag;

    @Column(length = 10)
    @ColumnDefault("false")
    private String isqcflag;
    @Column(length = 10)
    @ColumnDefault("false")
    private String ismps;

    @Column(precision = 28,scale = 8)
    private BigDecimal n1;

    @Column(precision = 28,scale = 8)
    private BigDecimal n2;

    @Column(length = 10)
    @ColumnDefault("0")
    private String issn;

    @Column(length = 10)
    @ColumnDefault("0")
    private String ismxq;

    @Column(length = 100)
    private String plansx;


    @Column(length = 50)
    private String minbatchqty;

    @Column(length = 50)
    private String minbzqty;

    @Column(length = 50)
    private String safeqty;
    @Column(length = 50)
    private String lowqty;
    @Column(length = 50)
    private String highqty;

    @Column(length = 32)
    private String dafaultvendorid;

    @Column(length = 10)
    private String taxinprice;

    @Column(length = 10)
    private String hunmanfee;

    @Column(length = 10)
    private String productfee;
}
